﻿using System;
using System.Collections.Generic;
using System.Text;
using T.FAS.Runtime.Metadata.Entity;

namespace T.FAS.Runtime.Metadata.SPI
{
    /// <summary>
    /// 元数据出码接口
    /// </summary>
    public interface IMetaDataGenerateHandler
    {
        /// <summary>
        /// 元数据出码
        /// </summary>
        /// <param name="metadata">元数据内容</param>
        /// <param name="isInternational">是否支持国际化</param>
        /// <returns>元数据编译结果</returns>
        MetaGenerateCodeResult GenerateCode(IMetaDataContent metadata, bool isInternational);

        /// <summary>
        /// 元数据持久化
        /// </summary>
        /// <param name="fileName">文件名</param>
        /// <param name="content">文件内容</param>
        /// <returns></returns>
        CommonResult Persistence(string fileName, string content);
    }
}
